Open
Conversation
|
pkg.pr.new packages benchmark commit |
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (350 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
Resolution Time Benchmark---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.98, 2.02, 4.31, 6.23, 7.25, 10.87, 21.36, 22.54]
line [0.95, 1.95, 3.93, 6.48, 7.64, 10.80, 21.66, 24.11]
line [0.91, 1.87, 3.94, 6.33, 7.89, 10.90, 20.99, 23.57]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.29, 0.54, 0.70, 0.88, 1.19, 1.21, 1.50, 1.70]
line [0.32, 0.48, 0.69, 0.85, 1.13, 1.18, 1.45, 1.59]
line [0.30, 0.53, 0.70, 0.82, 1.17, 1.19, 1.46, 1.57]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.93, 2.10, 3.84, 6.09, 12.48, 25.90, 58.26, 115.85]
line [0.89, 1.93, 4.01, 6.27, 12.52, 26.38, 56.52, 113.39]
line [0.85, 1.92, 3.47, 6.65, 12.61, 26.40, 58.17, 113.97]
|
There was a problem hiding this comment.
Pull request overview
Fixes TGSL console.log codegen when logging implicit pointer values (e.g. myUniform.$) by ensuring logged arguments are converted to their underlying value types before serializer generation.
Changes:
- Add a regression test covering
console.logwith an implicit pointer from a uniform. - Update the console log generator to convert arguments using
unptr(...)before building the logging function + metadata. - Extend
unptr(...)typing to acceptUnknownDatain more call sites.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/typegpu/tests/tgsl/consoleLog.test.ts | Adds an inline-snapshot test proving implicit pointers are dereferenced for logging. |
| packages/typegpu/src/tgsl/consoleLog/logGenerator.ts | Converts/dereferences arguments prior to serializer generation and adjusts metadata derivation. |
| packages/typegpu/src/data/dataTypes.ts | Broadens unptr(...) overloads to support UnknownData at the type level. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.